package com.chis.hbase;

import com.alibaba.fastjson.JSON;
import com.chis.jmdatatimer.comm.TxMgmtModule;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;
import java.util.Map;

public class SearchTest {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring-hbase.xml"});
        context.start();
        HbaseConn hbaseConn = (HbaseConn) context.getBean("hbaseConn");

        List<Map<String, Object>> list = hbaseConn.excutesql("select * from TD_DI_TRACE_INOC limit 10");
        System.out.println(JSON.toJSONString(list));
    }
}
